<template>
    <el-tooltip class="item" effect="dark" :content="title" placement="top-start">
        <el-button v-bind="$attrs" v-on="$listeners"></el-button>
    </el-tooltip>
</template>

<script>
export default {
  name:"Hintbutton",
  props:["title"],  //给上层组件使用即tooltip
  components: {},
  data() {
    return {
    };
  },
  computed: {},
  methods: {},
  mounted() {
      // 透传：$attrs 绑定所有未用prop接受的属性,$listeners 绑定所有传的事件。
    // console.log(this.$attrs,this.$listeners)
  }
};
</script>
<style scoped>
</style>